import { Suspense } from 'react'
import { RouterProvider } from 'react-router-dom'
import router from './router'
import { Spin } from '@arco-design/web-react'
function App() {
  return (
    <Suspense
      fallback={
        <div style={{ width: '100vw', height: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
          <Spin size={40} tip="加载中..." />
        </div>
      }
    >
      <RouterProvider router={router} />
    </Suspense>
  )
}

export default App
